x86/vmx: Correct the long mode check in vmx_cpuid_intercept()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 14 Nov 2016 10:15:00 +0000 (10:15 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 16 Nov 2016 10:32:54 +0000 (10:32 +0000)
commitfcb618c025f9251d7e22138f6528595037252c21
tree6dcfb56ff2603a5a055bede4bbf88565aec53347
parent632ff7847a398a9d0de988633cfe180e5116ec32
x86/vmx: Correct the long mode check in vmx_cpuid_intercept()

%cs.L may be set in a legacy mode segment, or clear in a compatibility mode
segment; it is not the correct way to check for long mode being active.

Both of these situations result in incorrect visibility of the SYSCALL feature
in CPUID, and by extension, incorrect behaviour in hvm_efer_valid().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <JBeulich@suse.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/vmx/vmx.c